class pageApi {
  query(api, params, self) {
    self.$store.dispatch(api, params).then((ret)=>{
      self.tableData=ret.data.records
      self.pagination=ret.data
    })
  }

  routerPush(url, params, self) {
    self.$router.push({path:url, query:params})
  }
}

export default pageApi
